package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 产品test对象 product_test
 *
 * @author ruoyi
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("product_test")
public class ProductTest extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 产品ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 产品名称
     */
    @NotBlank(message = "产品名称不能为空")
    @Size(min = 0, max = 50, message = "产品名称长度不能超过{max}个字符")
    private String name;

    /**
     * 产品别名
     */
    @Size(min = 0, max = 50, message = "产品别名长度不能超过{max}个字符")
    private String alias;

} 